package com.ygsoft.nio.filereceiver;

import java.io.IOException;

public class Main {
	
	public static void main(String ... v){
		SocketChannelQueue queue = new SocketChannelQueue();
		try {
			ClientAcceptor acceptor = new ClientAcceptor(queue, 888);
			acceptor.start();
			ClientWorker worker = new ClientWorker(queue);
			queue.setReadSelector(worker.getReadSelector());
			worker.start();
			
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	
}
